package com.example.schooldaka.controller;

import com.example.schooldaka.service.ApiService;
import com.example.schooldaka.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SchoolDaKa
 * @description: 账号密码登录
 * @author: Mr.Gui
 * @create: 2022-01-10 18:57
 **/
@RestController
@RequestMapping("/api")
public class loginController {

    @Autowired
    private ApiService apiService;

    @GetMapping("/login")
    public Result login(String username,String password,String address){
        return apiService.login(username,password,address);
    }

}
